package com.hzvictory.hotel_system.mapper;

import java.util.List;
import com.hzvictory.hotel_system.pojo.entity.Dishorderitem;
import org.apache.ibatis.annotations.Mapper;

/**
 * 菜品订单详情Mapper接口
 *
 * @author hzvictory
 * @date 2025-07-25
 */
@Mapper
public interface DishorderitemMapper
{
    /**
     * 查询菜品订单详情
     *
     * @param id 菜品订单详情主键
     * @return 菜品订单详情
     */
    public Dishorderitem selectDishorderitemById(Long id);

    /**
     * 查询菜品订单详情列表
     *
     * @param dishorderitem 菜品订单详情
     * @return 菜品订单详情集合
     */
    public List<Dishorderitem> selectDishorderitemList(Dishorderitem dishorderitem);

    /**
     * 新增菜品订单详情
     *
     * @param dishorderitem 菜品订单详情
     * @return 结果
     */
    public int insertDishorderitem(Dishorderitem dishorderitem);

    /**
     * 修改菜品订单详情
     *
     * @param dishorderitem 菜品订单详情
     * @return 结果
     */
    public int updateDishorderitem(Dishorderitem dishorderitem);

    /**
     * 删除菜品订单详情
     *
     * @param id 菜品订单详情主键
     * @return 结果
     */
    public int deleteDishorderitemById(Long id);

    /**
     * 批量删除菜品订单详情
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDishorderitemByIds(Long[] ids);
}
